#include <QtGui/QApplication>
#include <QTextCodec>
#include "mainwindow.h"
#include "settings.h"

#include <iostream>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    app.setOrganizationName(SETTING_ORGANIZATION);
    app.setApplicationName(SETTING_APPLICATION);

    QTranslator qtTranslator;
    qtTranslator.load("qt_" + QLocale::system().name(),
             QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    app.installTranslator(&qtTranslator);

    QTranslator myappTranslator;
    myappTranslator.load(":/translations/Akarnaya_" + QLocale::system().name());
    app.installTranslator(&myappTranslator);

    MainWindow w;
    w.show();

    return app.exec();
}
